<script lang="ts" setup>
import ImportSection from './ImportSection.vue';
import WeightSection from './WeightSection.vue'
import FilterSection from './FilterSection.vue';
import SortSection from './SortSection.vue';
import TextButton from './TextButton.vue';
import { useStore } from '@/store';
const store = useStore()
const start = () => { store.dispatch('updFilteredArtifacts') }
</script>

<template>
    <div class="layout-right">
        <el-scrollbar>
            <import-section />
            <filter-section />
            <weight-section />
            <sort-section />
            <div class="start-container">
                <text-button @click="start">开始计算</text-button>
            </div>
        </el-scrollbar>
    </div>
</template>

<style lang="scss" scoped>
.layout-right {
    width: 500px;
    background-color: $right-bgcolor;
    box-shadow: 0 0 4px 1px #ccc;
    color: #444;
    overflow-y: auto;
    user-select: none;
    .start-container {
        padding: 20px 0;
        margin-top: 20px;
        text-align: center;
        background-color: #f3fdff77;
        backdrop-filter: blur(22px);
        border-top: 1px solid #e7e7e7;
        position: sticky;
        bottom: 0;
        z-index: 1;
    }
}
@-moz-document url-prefix() {
    .layout-right .start-container {
        background-color: $right-bgcolor;
    }
}
</style>